<%for n in params%>
<%end%>
<p>
  <%= f.label :name %><br />
  <%= f.text_field :name %>
</p>
<p>
  <%= f.label :description %><br />
  <%= f.text_field :description %>
</p>
<%if params[:site_id]%>
  <input id="site_id" name="group[site_id]" type="hidden" value = <%=params[:site_id]%>/>
<%else%>
<p>
  <%= f.label :site_id %><br />
  <%= collection_select(:group, :site_id, Site.find(:all), :id, :name, {:prompt => true}) %>
</p>
<%end%>
<p>
  # of laps in a mile<br />
  <%= f.text_field :lap %>
</p>

<input id="user_id" name="group[user_id]" type="hidden" value = <%=self.current_user.id%>/>


